home *** CD-ROM | disk | FTP | other *** search
/ PCNet 1998 May / PCnet Mayıs 1998.iso / Multimed / Program / A_Trial.exe / data.z / JMxIntKey.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-12-04  |  573 b   |  21 lines

  1. class JMxIntKey implements JMxKey {
  2.    private int m_KeyVal;
  3.  
  4.    public JMxIntKey(int var1) {
  5.       this.m_KeyVal = var1;
  6.    }
  7.  
  8.    public String toString() {
  9.       return "Key= " + this.m_KeyVal;
  10.    }
  11.  
  12.    public int Compare(JMxKey var1) {
  13.       JMxIntKey var2 = (JMxIntKey)var1;
  14.       if (this.m_KeyVal == var2.m_KeyVal) {
  15.          return 0;
  16.       } else {
  17.          return this.m_KeyVal > var2.m_KeyVal ? 1 : -1;
  18.       }
  19.    }
  20. }
  21.